#ifndef _LINKSTACK_H
#define _LINKSTACK_H

#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>

#define size 10

struct STACK
{
	int data;
	struct STACK* next;
};

typedef struct STACK 		STACK;
typedef struct STACK* 	pstack;

/*函数声明*/
void creat_linkstack(pstack* S);
void push(pstack* ptop,pstack pnew);
void pop(pstack* ptop,int* pdata);
void print_linkstack(pstack top);
bool isempty_linkstack(pstack p);

#endif

